package com.example.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
* 商品描述图片
* </p>
*
* @author 作者
* @since 2022-05-29
*/
@Getter
@Setter
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("r_goods_description_picture")
public class GoodsDescriptionPicture extends Model<GoodsDescriptionPicture> {

    private static final long serialVersionUID = 1L;
    public static final int goodsDescribePictureMaxNum = 10;
    public static final int goodsDetailPictureMaxNum = 10;
    //商品的唯一标识
    private Long goodsId;

    @TableId(value = "goods_description_picture", type = IdType.NONE)
    //商品的描述图片
    private String goodsDescriptionPicture;

    @Override
    public String toString() {
        return "GoodsDescriptionPicture{" +
                "goodsId=" + goodsId +
                ", goodsDescriptionPicture='" + goodsDescriptionPicture + '\'' +
                '}';
    }
}
